<?php


namespace App\Entity\Teacher;


use App\Entity\BaseEntity;

/**
 * Class ExerciseDto
 * @package App\Entity\Teacher
 * @property int $classesId
 * @property string $startTime
 * @property string $endTime
 * @property int $seconds
 * @property int $passNum
 * @property int $excelNum
 * @property int $teacherId
 */
class ExerciseDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'classesId' => 'required',
//            'startTime' => 'required',
//            'endTime' => 'required',
            'passNum' => 'required',
            'excelNum' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'classesId.required' => '班级ID必传',
//            'startTime.required' => '开始时间必传',
//            'endTime.required' => '结束时间必传',
            'passNum.required' => '合格次数必传',
            'excelNum.required' => '优秀次数必传',
        ];
    }
}
